<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03浮动布局</title>
    <style>
        .fu {
            background-color: yellow;
            overflow: hidden;
        }

        .fu > div {
            width: 100px;
            height: 100px;
            border: 3px solid red;
        }

        .z1 {
            background-color: #f00;
            /*float: right;*/
            float: left;
        }

        .z2 {
            background-color: #0f0;
            /*float: right;*/
            float: left;
        }

        .z3 {
            background-color: #00f;
            /*float: right;*/
            float: left;
        }
        ul {
            margin: 0;
            padding: 0;
            list-style: none;/*去掉列表项前的标识符*/
            background-color: #0aa1ed;
            overflow: hidden;
        }
        li {
            width: 100px;
            height: 40px;
            float: left;
            /*border: 2px solid red; 辅助线 用完了去掉*/
            text-align: center;
        }
        a {
            color: #fff;
            text-decoration: none;
            line-height: 40px;
        }
    </style>
</head>
<body>
<div class="fu">
    <div class="z1"></div>
    <div class="z2"></div>
    <div class="z3"></div>
</div>
<hr>
<!--实现导航栏-->
<ul>
    <li><a href="#">首页</a></li>
    <li><a href="#">免费课</a></li>
    <li><a href="#">Java猎才</a></li>
    <li><a href="#">Java2312</a></li>
</ul>
</body>
</html>